package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.SetmealDish;
import com.sky.enumeration.OperationType;
import com.sky.vo.DishItemVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName: SetmealDishMapper
 * Package: com.sky.mapper
 * Description:套餐对应的菜品
 *
 * @Author: Zhang Peiyuan
 * @Create: 2024-12-19-12:41
 * @Version: v1.0
 */
@Mapper
public interface SetmealDishMapper {

    Integer selectCountByDishid(Long id);

    @AutoFill(OperationType.INSERT)
    void insertBatch(List<SetmealDish> setmealDishes);

    void deleteBySetmealId(Long setmealId);

    List<SetmealDish> selectBySetmealId(Long setmealId);

    List<DishItemVO> selectSetmealOfDish(Long setmealId);
}
